package cz.muni.fi.pa165.library.client.gui.swing;

import java.io.IOException;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import org.apache.ws.security.WSPasswordCallback;

/**
 *
 * @author Equo
 */
public class PasswordCallback implements CallbackHandler {

    @Override
    public void handle(Callback[] callbacks) throws IOException {
        WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[0];
        pwcb.setPassword("soap");
    }  
}

